package Z007InterfaceAndExtends.O10inClass;

public class NCNNUJBjiexi {}

abstract class hero3{
    public abstract void attack();
    public static void main(String[] args){
        int damage = 5;

        class AnonymousHero extends hero3{
            int damage;
            @Override
            public void attack() {
                damage = 10;
                System.out.printf("造成" + "%d",this.damage);

            }
        }
        hero3  h4 = new AnonymousHero();
    }
}
